import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
   {
    title: 'Period',
    align:"center",
    dataIndex: 'version'
   },
   {
    title: 'Division',
    align:"center",
    dataIndex: 'division'
   },
   {
    title: 'Detailed Division',
    align:"center",
    dataIndex: 'detailedDivision'
   },
   {
    title: 'Product',
    align:"center",
    dataIndex: 'product'
   },
   {
    title: 'Wave',
    align:"center",
    dataIndex: 'wave'
   },
   {
    title: 'Campaign Name',
    align:"center",
    dataIndex: 'campaignName'
   },
   {
    title: 'Buying Type',
    align:"center",
    dataIndex: 'buyingType'
   },
   {
    title: 'MediaType',
    align:"center",
    dataIndex: 'mediaType'
   },
   {
    title: 'Budget',
    align:"center",
    dataIndex: 'budget'
   },
   {
    title: 'Revision',
    align:"center",
    dataIndex: 'revision'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
  {
    label: "BatchId",
    field: 'batchid',
    show: false,
    component: 'Input',
    colProps: {span: 6},
  },
  {
    label: "Period",
    field: 'version',
    show: false,
    component: 'Input',
    colProps: {span: 6},
  },
  {
    label: "Division",
    field: 'division',
    show: false,
    component: 'Input',
    colProps: {span: 6},
  },
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: 'Period',
    field: 'version',
    component: 'Input',
  },
  {
    label: 'Division',
    field: 'division',
    component: 'Input',
  },
  {
    label: 'Detailed Division',
    field: 'detailedDivision',
    component: 'Input',
  },
  {
    label: 'Product',
    field: 'product',
    component: 'Input',
  },
  {
    label: 'Wave',
    field: 'wave',
    component: 'Input',
  },
  {
    label: 'Campaign Name',
    field: 'campaignName',
    component: 'Input',
  },
  {
    label: 'Buying Type',
    field: 'buyingType',
    component: 'Input',
  },
  {
    label: 'MediaType',
    field: 'mediaType',
    component: 'Input',
  },
  {
    label: 'budget',
    field: 'budget',
    component: 'InputNumber',
  },
  {
    label: 'revision',
    field: 'revision',
    component: 'InputNumber',
  },
	// TODO 主键隐藏字段，目前写死为ID
	{
	  label: '',
	  field: 'id',
	  component: 'Input',
	  show: false
	},
];
